package net.dodoman.enums;

/**
 * 定义常量并且知道常量的描述
 * 
 * @author yanping
 * 
 */
public enum MessageInfo {

	MI() {
		@Override
		int getCode() {
			return 1;
		}

		@Override
		String getInfo() {
			return "info1";
		}
	},
	MIMORE() {
		@Override
		int getCode() {
			return 2;
		}

		@Override
		String getInfo() {
			return "info2";
		}
	};

	MessageInfo() {
	}

	abstract int getCode();

	abstract String getInfo();
}
